@echo off
chcp 65001
CLS
color 0a


set serverIP=8.133.198.19
set username=root
set password=109927657@com
set localFile=.\output\data\data.json
set remotePath=/root/game/data
set remoteScript=/root/game/reload.sh



echo 上传文件到服务器...
.\tools\pscp -scp -pw %password% %localFile% %username%@%serverIP%:%remotePath%
echo 在服务器上执行脚本...

.\tools\plink -batch -ssh %username%@%serverIP%  -pw %password% "chmod +x %remoteScript% && %remoteScript%"
echo 任务完成！
